<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="utf-8">
	<title>详情</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport"
		content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" href="/layui/css/layui.css" media="all">
	<link rel="stylesheet" href="/html/main/config/lib/main.css" media="all">
	<style>
		.layui-input {
			border: 0px;
		}
	</style>
</head>

<body id="layui-body-content" class="layui-bg">
	<div style="padding: 10px;">
		<form class="layui-form" action="" lay-filter="layui-form-Table">
			<table class="layui-table">
				<tr>
					<td width="100">
						用户名
					</td>
					<td>
						<input type="text" name="username" autocomplete="off" class="layui-input">
					</td>
				</tr>
				<tr>
					<td>
						真实姓名
					</td>
					<td>
						<input type="text" name="truename" autocomplete="off" class="layui-input">
					</td>
				</tr>
				<tr>
					<td>
						单位名称
					</td>
					<td>
						<input type="text" name="deptname" autocomplete="off" class="layui-input">
					</td>
				</tr>
				<tr>
					<td>
						所属科室
					</td>
					<td>
						<input type="text" name="remark" autocomplete="off" class="layui-input">
					</td>
				</tr>
				<tr>
					<td>
						联系电话
					</td>
					<td>
						<input type="text" name="phonenumber" autocomplete="off" class="layui-input">
					</td>
				</tr>
				<tr>
					<td>
						电子邮箱
					</td>
					<td>
						<input type="text" name="email" autocomplete="off" class="layui-input">
					</td>
				</tr>
			</table>
			<div class="layui-form-item">
				<div class="layui-input-block layui-hide">
					<button class="layui-btn" lay-submit lay-filter="YjbtnSave" id="YjbtnSave" type="button">提交</button>
				</div>
			</div>
		</form>
	</div>
	<script src="/layui/layui.js"></script>
	<script>
		layui.use(['form', 'jquery', 'jm'], function () {
			var $ = layui.jquery
				, form = layui.form
				, jm = layui.jm
				, admin = parent.layui.admin;

			parent.layui.admin.req({
				url: 'system/users/Edit'
				, type: 'get'
				, data: { id: layui.data(parent.layui.setter.tableName)['yj_KeyID'] }
				, done: function (res) {
					if (res.successful) {
						res.data = JSON.parse(jm.s4.decryptData_ECB(res.data));
						form.val("layui-form-Table", {
							"username": res.data.username
							, "truename": res.data.truename
							, "deptname": res.data.deptname
							, "phonenumber": res.data.phonenumber
							, "email": res.data.email
							, "remark": res.data.remark
						});
					}
				}
			});
		});
	</script>
</body>

</html>